package org.qh.workflow.service.impl;

import lombok.RequiredArgsConstructor;
import org.qh.common.core.domain.dto.CompleteTaskDTO;
import org.qh.common.core.domain.dto.StartProcessDTO;
import org.qh.common.core.domain.dto.StartProcessReturnDTO;
import org.qh.common.core.service.WorkflowService;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 通用 工作流服务实现
 *
 * @author qianhong
 */
@RequiredArgsConstructor
@Service
public class WorkflowServiceImpl implements WorkflowService {


    @Override
    public boolean deleteInstance(List<Long> businessIds) {
        return false;
    }

    @Override
    public String getBusinessStatusByTaskId(Long taskId) {
        return "";
    }

    @Override
    public String getBusinessStatus(String businessId) {
        return "";
    }

    @Override
    public void setVariable(Long instanceId, Map<String, Object> variable) {

    }

    @Override
    public Map<String, Object> instanceVariable(Long instanceId) {
        return Map.of();
    }

    @Override
    public Long getInstanceIdByBusinessId(String businessId) {
        return 0L;
    }

    @Override
    public void syncDef(String tenantId) {

    }

    @Override
    public StartProcessReturnDTO startWorkFlow(StartProcessDTO startProcess) {
        return null;
    }

    @Override
    public boolean completeTask(CompleteTaskDTO completeTask) {
        return false;
    }

    @Override
    public boolean completeTask(Long taskId, String message) {
        return false;
    }
}
